<%@ page import="org.json.*"%>
<%@ page import="java.net.*"%>
<%
	//System.out.println(request.getRequestURI());
	//String name = request.getParameter("name");
	//System.out.println(URLDecoder.decode(name,"utf-8"));
	
	
	JSONObject jo = new JSONObject();
	
	jo.accumulate("name","a1");
	jo.accumulate("name2","a2");
	jo.accumulate("name3","a3");
	
	/*
	jo.accumulate("para1","a1");//将数据封装到JSONObject
	jo.accumulate("para2","参数2");
	jo.accumulate("para3","a3");
	
	jo.accumulate("categories","a1");
	jo.accumulate("categories","a2");
	jo.accumulate("categories","a3");
	
	jo.accumulate("name","a1");
	jo.accumulate("name","a2");
	jo.accumulate("name","a3");
	*/
	
	out.println(jo);
	System.out.println(jo);
%>